package org.misty.practices.inject;

import org.misty.practices.inject.core.Autowired;

public class ServiceImpl implements IService {
    @Autowired
    private IAnotherService anotherService;

    @Override
    public void sayHello() {
        // https://ide.wy-lang.org/
        System.out.println("問天地好在");

        anotherService.exchange();
    }

    @Override
    public void sayGoodBye() {
        System.out.println("后会有期");
    }
}
